<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>

<html>
<head>
    <title>登录页</title>
    <%--echart线图、柱状图、饼图等各种图型库 cdn--%>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
    <%--jquery cdn--%>
    <script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.js"></script>
</head>
<body>
${error}
<form action="/add.do">
    姓名 <input name="name" ><br>
    工号 <input name="num" ><br>
    部门 <select name="deptId">
    <option value="">请选择</option>
    <c:forEach items="${deptList}" var="d">
        <option     ${query.deptId == d.id ? 'selected':''} value="${d.id}">${d.name}</option>
    </c:forEach>
</select><br>

    小组
    <c:forEach items="${groupList}" var="g">
        <input type="radio" name="groupId" value="${g.id}">${g.name}
    </c:forEach>

</select><br>
    是否考勤 <select name="kaoqin">
    <option value="">请选择</option>
    <option   ${query.kaoqin==1 ? 'selected' : ''} value="1">是</option>
    <option   ${query.kaoqin==0 ? 'selected' : ''} value="0">否</option>
</select><br>

    入职日期 <input type="date" name="createTime" >
    <input type="submit" value="添加">



</form>

</body>
</html>